//
//  MovieTableViewCell.m
//  shipin
//
//  Created by lanou3g on 15/11/18.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "MovieTableViewCell.h"
#import "UIImageView+WebCache.h"

@implementation MovieTableViewCell

- (void)setModel:(MovieModel *)model
{
    
    _titleLabel.text = model.title;
    _disrectionLabel.text = model.Description;
    int minute = (int)model.length / 60;
    //秒
    int seconds = (int)model.length % 60;
    _PlayTimelabel.text = [NSString stringWithFormat:@"%02d:%02d",minute,seconds];
    _PlayCountLabel.text = [NSString stringWithFormat:@"%ld",(long)model.playCount];
    [_MiddleImageView sd_setImageWithURL:[NSURL URLWithString:model.cover] placeholderImage:nil];



}
- (IBAction)ShareButton:(id)sender {
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
